package parkshop.pmcourse.mapping;

import java.util.List;

import parkshop.pmcourse.domain.Advertisement;
import parkshop.pmcourse.dto.PageBean;

public interface AdvertisementMapper {

	Advertisement selectByPrimaryKey(Long id);
	List<Advertisement> selectByShopId(Long shopId);
	List<Advertisement> selectPageByShopId(PageBean pageBean);
	int updateByPrimaryKeySelective(Advertisement advertisement);
	int insertSelective(Advertisement advertisement);
	
	int deleteByPrimaryKey(Long key);
	int selectCountByShopId(Long shopId);
	
	
}
